package com.gxa.uhome.service;

import com.gxa.uhome.exception.BusinessException;
import com.gxa.uhome.pojo.GoodsType;

import java.util.List;

/**
 * User: Sanruy Mu
 * Date: 2021/06/07 14:06
 * Description:
 * Version: V1.0
 */
public interface GoodsTypeService {
        Integer add(GoodsType goodsType) throws BusinessException;

        Integer edit(GoodsType goodsType) throws BusinessException;

        Integer delete(Integer id) throws BusinessException;

        List<GoodsType>  selectByLikeName(String name) throws BusinessException;

        List<GoodsType> selectByPageParent(Integer page, Integer size) throws BusinessException;

        List<GoodsType> selectByPageSon(Integer id);

        List<GoodsType> selectAll() throws BusinessException;

        Integer deleteByPid(Integer id);

        GoodsType selectById(Integer pid) throws BusinessException;
}